# coding: utf-8
from wsgiref.simple_server import make_server
from pyramid.config import Configurator

def hello_world(request):
    return {'project':'Menangen Test'}

if __name__ == '__main__':
    settings={'mako.directories':'templates'}
    config = Configurator(settings=settings)

    config.add_route('hello', '/')
    #config.add_route('hello_action', '/{action}')


    config.add_view(hello_world, route_name='hello', renderer='foo.mako')
    #config.add_view(hello_world, route_name='hello_action')

    app = config.make_wsgi_app()

    server = make_server('127.0.0.1', 80, app)
    server.serve_forever()